Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddRealComp/AddIntComp: Resize SoA #3615

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Nov 6, 2023

Summary

When adding new Real/Int runtime components, they could be made available without additional calls.

The cost should be the same as calling it explicitly later, but clarifies the usage. Alternatively, we should add API contract details to the AddRealComp/AddIntComp doc strings to make sure people use it right.

Additional background

Checklist

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • include documentation in the code and/or rst files, if appropriate

When adding new `Real`/`Int` runtime components, they
could be made available without additional calls.

The cost should be the same as calling it explicitly later,
but clarifies the usage.
@ax3l ax3l requested review from atmyers and WeiqunZhang November 6, 2023 17:34
@ax3l ax3l changed the title AddRealComp/AddIntComp: Resize AddRealComp/AddIntComp: Resize SoA Nov 6, 2023
@atmyers atmyers merged commit f264290 into AMReX-Codes:development Mar 29, 2024
69 checks passed
@ax3l ax3l deleted the runtime-add-resize branch March 29, 2024 19:00
ax3l added a commit that referenced this pull request Mar 29, 2024
## Summary

Some object called "dummy mf" needs to be resized to avoid segfaults.

## Additional background

Follow-up to #3615

## Checklist

The proposed changes:
- [x] fix a bug or incorrect behavior in AMReX
- [ ] add new capabilities to AMReX
- [ ] changes answers in the test suite to more than roundoff level
- [ ] are likely to significantly affect the results of downstream AMReX
users
- [ ] include documentation in the code and/or rst files, if appropriate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants